Hybris Sales UX API icon

Hybris Sales UX API

(0 reviews)

Tax Estimate (topupBalance) TMF-654 GET

taxEnquery

Get the tax estimations by the postcode from matrixx

URL
http://[localhost]:[port]/ecom-sales-ux/v1/{businessId}/topupBalance
uri Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
N
channelIdstringChannelId of the consumer
Example: "QPay"
Y
Query Param
nametypedescriptionrequired
logicalResource.idstringTo list the topupBalance of a specific MSISDN idY
reasonstringThe execution mode
Example: 2
Y
amount.amountstringtop up amountY
characteristics.namestringname of the characteristic
example : "zipcode"
Y
characteristics.value.Plus4string4-digit Zip+4 codeY
characteristics.value.PostalCodestring5-digit Postal CodeY
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/ecom-sales-ux/v1/PR/topupBalance?logicalResource.id=11254923434&reason=2&amount.amount=200&characteristics.value.Plus4=2023&characteristics.value.PostalCode=20238&characteristics.name=zipCode' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'channelId: QPay'
Response
[
    {
        "id": "1", //PurchaseInfoArray.BalanceImpactGroupList.BalanceImpactList.BalanceResourceId
        "name": "Prepaid Balance", //PurchaseInfoArray.BalanceImpactGroupList.BalanceImpactList.BalanceTemplateName
        "@type": "MainBalance", //set as "MainBalance" if "//PurchaseInfoArray.BalanceImpactGroupList.BalanceImpactList.IsMainBalance" is equal 'true'
        "description": "United States dollar", //PurchaseInfoArray.BalanceImpactGroupList.BalanceImpactList.BalanceClassName
        "externalId": "Subscription Purchase Recharge Offer c03114d0-32a8-11ed-b038-0a936d9da655", //RelatedMsgId
        "remainingValue": {
            "amount": 2.3, //BalanceImpactList.CurrentBalanceAmount
            "units": "USD" // set 'usd' if 'IsActualCurrency = trie' else "" (empty string)
        },
        "validFor": {
            "startDateTime": "2024-11-27T11:08:18.000000-07:00", //BalanceImpactList.BalanceStartTime
            "endDateTime": "65535-12-31T23:59:59.999999Z" //BalanceImpactList.BalanceEndTime
        },
        "partyAccount": {
            "id": "S-101", //BalanceImpactList.BalanceOwnerExternalId
            "@type": "SubscriptionRef"    //HD
        },
        "product": [
            {
                "id": "138", //BalanceImpactOfferList.CatalogItemId
                "name": "RechargeTaxInquiry", //BalanceImpactOfferList.CatalogItemExternalId
                "@type": "CatalogRef", //HD
                "productCharacteristic": [
                    {
                        "name": "BalanceClassId",
                        "value": "840"
                    },
                    {
                        "name": "BalanceOwnerId",
                        "value": "0-1-5-2185"
                    },
                    {
                        "name": "BalanceTemplateId",
                        "value": "21037"
                    },
                    {
                        "name": "DebtBalanceType",
                        "value": "not_debt"
                    },
                    {
                        "name": "Flags",
                        "value": "1"
                    },
                    {
                        "name": "QuantityUnit",
                        "value": "none"
                    },
                    {
                        "name": "SourceEventType",
                        "value": "4"
                    },
                    {
                        "name": "ResourceId",
                        "value": "0" //PurchaseInfoArray.ResourceId
                    }
                ],
                "productOffering": {
                    "id": "204", //ProductOfferId
                    "name": "purchased_offer" //OfferType
                }
            }
        ],
        "taxItem": [
            {
                "taxAmount": {
                    "unit": "USD",
                    "value": 20.0
                },
                "UpdateType": "1",
                "@type": "TaxItem"
            },
            {
                "taxAmount": {
                    "unit": "USD",
                    "value": -20.0
                },
                "UpdateType": "3",
                "@type": "TaxItem"
            },
            {
                "taxAmount": {
                    "unit": "USD",
                    "value": 2.1
                },
                "taxCategory": "STATE SALES TAX",
                "taxRate": 0.105,
                "UpdateType": "14",
                "PassType": "00",
                "@type": "TaxItem"
            },
            {
                "taxAmount": {
                    "unit": "USD",
                    "value": 0.2
                },
                "taxCategory": "CITY SALES TAX",
                "taxRate": 0.01,
                "UpdateType": "14",
                "PassType": "00",
                "@type": "TaxItem"
            }
        ],
        "impactedAmount": {
            "amount": 2.3, //BalanceImpactList.ImpactAmount
            "units": "USD" // set 'usd' if 'IsActualCurrency = trie' else "" (empty string)
        }
    }
]

Definitions:

nametypedescriptionrequired
idstringResource ID of balance instance.
Example: value of BalanceResourceId
N
namestringName of balance template as defined in My MATRIXX.
Example: value of BalanceTemplateName
N
@typestringMain balance flagN
descriptionstringClass name of balance as defined in pricing file.
Example: value of BalanceClassName
N
externalIdstringEncoded field used to correlate system wide logging.
Example: value of RelatedMsgId
N
remainingValueobjectremaining value objectN
remainingValue.amountnumberCurrent balance amount. May not be accurate.N
remainingValue.unitsstringunit value of the amountN
validForobjectvalid for objectN
validFor.startDateTimestringstart date of the validity
Example: value of BalanceStartTime
N
validFor.endDateTimestringend date of the validity
Example: value of BalanceEndTime
N
partyAccountobjectparty account objectN
partyAccount.idstringparty account identifier
Example: value of BalanceOwnerExternalId
N
partyAccount.@typestringtype of the party accountN
productarray objectproduct arrayN
product.idstringproduct identifer
Example: value of CatalogItemId
N
product.namestringname of the product
Example: value of CatalogItemExternalId
N
product.@typestringreference type of the product.N
product.productCharacteristicarray objectproduct characteristic arrayN
product.productCharacteristic.namestringName of the product characteristicN
product.productCharacteristic.valuestringValue of the product characteristicN
product.productOfferingobjectproduct offering objectN
product.productOffering.idstringProduct offering identifier
Example: value of ProductOfferId
N
product.productOffering.namestringName of the product offering
Example: value of OfferType
N
taxItemarray objecttax Item arrayN
taxItem.taxAmountobjecttax amount objectN
taxItem.taxAmount.unitstringunit of the tax amountN
taxItem.taxAmount.valuenumbertax amountN
taxItem.taxCategorystringname of the taxN
taxItem.taxRatenumberrate of the taxN
taxItem.updateTypestringType of balance update.N
taxItem.PassTypestringPass Type indicates how tax is represented on an invoiceN
taxItem.@typestringtax item typeN
impactedAmountobjectimpacted amount objectN
impactedAmount.amountnumberimpacted amountN
impactedAmount.unitsstringunits of the impacted amountN
product.productCharacteristic Values:
productCharacteristic nametypedescriptionrequired
BalanceClassIdstringBalance class unique identifier.N
BalanceOwnerIdstringBalance owner identifierN
BalanceTemplateIdstringBalance template identifierN
DebtBalanceTypestringDebit balance typeN
FlagsstringFlagsN
QuantityUnitstringQuantity unitsN
SourceEventTypestringsource event typeN
ResourceIdstringresource identiferN

Reviews